/**
 * 
 */
package com.uit.project.bustrip.appconfig;

import java.util.ArrayList;
import java.util.List;

import com.uit.project.bustrip.entity.Customer;
import com.uit.project.bustrip.entity.User;

/**
 * @author 
 *
 */
public class AppsConfig {
	public static final String IMPL = "Impl";
	public static final String DB_NAME = "bustrip";
	public static final int DB_VERSION = 3;
	public static final String RESULT_SUCCESS = "success";
	public static final String RESULT_FAIL = "fail";
	public static final String JSON_OBJECT = "jsonresult";
	public static final String JSON_RESULT = "result";
	public static final String JSON_DATA = "data";
	public static final String JSON_MESSAGE = "message";
	public static final String MESSAGE_CONNECTION_ERROR = "Lỗi kết nối!";
	
	public static List<String> tableList(){
		List<String> tables = new ArrayList<String>();
		tables.add("User");
		tables.add("Customer");
		return tables;
	}
	public static List<Class<?>> entityList(){
		List<Class<?>> clazzs = new ArrayList<Class<?>>();
		clazzs.add(User.class);
		clazzs.add(Customer.class);
		return clazzs;
	}
	public static String getDaoImplPackage(){
		return "com.uit.project.bustrip.dao";
	}
	public static String getBoImplPackage(){
		return "com.uit.project.bustrip.bo";
	}
	public static String getServiceURL(){
		return "http://192.168.0.102/project/bus_trip/Source/Webservice/Webservice/";
	}
}
